package dataformat

import (
	"regexp"
)

// Regular expression for UUID
const uuidPattern = `^(?i)[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$`

// Compiled regular expression for UUID
var uuidRegex = regexp.MustCompile(uuidPattern)

func IsUUID(uuidStr string) bool {
	return uuidRegex.MatchString(uuidStr)
}
